package com.example.chatchatbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.chatchatbackend.entity.dto.send.SendMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface SendMessageMapper extends BaseMapper<SendMessage> {

    void updateSendMessage(SendMessage sendMessage);

    void insertList(List<SendMessage> sendMessageList);

    List<SendMessage> selectAll();

    List<SendMessage> findSendMessageList(@Param("isSend") Integer isSend,@Param("currentTime") LocalDateTime currentTime);
}
